package wlf.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import wlf.pojo.User;
import wlf.service.UserService;

@Controller
public class UserController {
	@Resource
	private UserService userSerivceImpl;
	
	
	@ResponseBody
	@RequestMapping("/allUser")
	public List<User> allUser(){
		return userSerivceImpl.allUser();
	}
}
